import {defineStore} from "pinia"
import newaxios from "@/service/request"
const useCityStore = new defineStore("city",{
    state: () => ({
        citys:[],
        selectCity:{
            cityName:"佛山"
        }
    }),
    actions:{
        async getCity(){
            const res = await newaxios.get("/city/all")
            this.citys = res.data
        }
    }
})

export default useCityStore